from mall.models.language import Language


def init_language_data(engine):
    conn = engine.connect()

    conn.execute(Language.__table__.insert(),
                 {
                     'id': 'zh_CN',
                     'screen_name': '简体中文',
                     'logo': 'http://oc3dkgv4l.bkt.clouddn.com/countries/China.png',
                     'type': 'default',
                 },
                 {
                     'id': 'en_US',
                     'screen_name': 'U.S State',
                     'type': 'normal',
                     'logo': 'http://oc3dkgv4l.bkt.clouddn.com/countries/United-States-of-America.png'
                 })
    # ## commands auto generated by Alembic - please adjust! ###
    # zh_CN = Language(
    #     id = 'zh_CN',
    #     screen_name='简体中文',
    #     logo = 'http://oc3dkgv4l.bkt.clouddn.com/countries/China.png',
    #     type = 'default'
    # )
    #
    # en_US = Language(
    #     id='en_US',
    #     screen_name='U.S State',
    #     logo='http://oc3dkgv4l.bkt.clouddn.com/countries/United-States-of-America.png',
    # )
    # session.add(zh_CN)
    # session.add(en_US)
    # session.commit()
